<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发布新博客－{$username}的博客-{$config[cfg_webname]}</title>
<link href="{$BASE_V}css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!--{template inc/top}-->
<table width="940" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:15px">
  <tr>
    <!--{template inc/left_index}-->  
    <td width="731" valign="top">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="{$BASE_V}images/c_addblog.gif" width="123" height="18" /></td>
          <td height="36" align="right" class="yellow12">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" style="border-top:1px dashed #b2b2b2">
	  <form name="modform" id="forms" action="{PHP_SELF}?m=user.blogsave" method="post"  onSubmit="return chkForm();">               
          <div id="new_reg"><span class="addblog_span">标题</span><input type="text" name="title" id="title" class="new_reg_input" size="80" value="$info[title]"/></div>
          <div id="new_reg"><span class="addblog_span">排序</span><input type="text" name="orderby" id="orderby" class="new_reg_input" value="$info[orderby]"/></div>  
          <div id="new_reg" style="height:auto"><span class="addblog_span">内容</span><textarea name="content" id="content" rows="60" cols="100" class="xheditor editor">$info[content]</textarea></div>                    
 
          <div id="new_reg"><input type="hidden" name="id" value="$info[id]" /><input type="submit" value="发布" style="margin-left:173px; margin-top:4px"/></div>
          </form>             </td>
        </tr>
      </table>
      
      <div class="bai12" style="padding-top:50px; text-align:center">

      </div>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<script type="text/javascript" src="{$BASE}js/xheditor/xheditor-1.1.7-zh-cn.min.js"></script>、
<script language="javascript">
//以后jquery中的都用jq代替即可。 
jq('#content').xheditor({upLinkUrl:"Public/uploadfiles/upload.php",upLinkExt:"zip,rar,txt",upImgUrl:"Public/uploadfiles/upload.php",upImgExt:"jpg,jpeg,gif,png",upFlashUrl:"Public/uploadfiles/upload.php",upFlashExt:"swf",upMediaUrl:"Public/uploadfiles/upload.php",upMediaExt:"avi"});
function chkForm()
{
	if($('title').value == ""){
	   alert("请填写标题！");   
	   $('title').focus();
	   return(false);
   	}

	if(jq('#content').val() == ""){
	   alert("请填写内容！");   
	   $('content').focus();	   
	   return(false);
   	}	
		
}

</script>
